package cn.com.headfree.call.callback;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Component;

import com.gta.edu.sdk.base.call.callback.UserAuthServerCallBack;
import com.gta.edu.sdk.common.dto.ResultData;

import cn.com.headfree.call.IFrontFrameServiceCall;

@Component
public class FrontFrameServiceCallBack implements IFrontFrameServiceCall{

	private static final Logger log = LogManager.getLogger(UserAuthServerCallBack.class);
	
	@Override
	public ResultData findLabelByDomainId(int pageSize,int pageNo) {
		String errorMsg = "调用comm-front-frame组件的接口获取系统的角色列表失败！";
		ResultData result = new ResultData();
		result.setSuccess(false);
		result.setErrorMsg(errorMsg);
		log.error(errorMsg);
		return result;
	}

	@Override
	public ResultData findUserByLabelId(String labelId,String domainId) {
		String errorMsg = "通过domainId【"+domainId+"】和角色ID【"+labelId+"】，调用comm-front-frame组件的接口获取角色ID下用户列表失败！";
		ResultData result = new ResultData();
		result.setSuccess(false);
		result.setErrorMsg(errorMsg);
		log.error(errorMsg);
		return result;
	}


}
